package parse;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author ayca
 *
 */
import com.google.api.translate.Language;
import com.google.api.translate.Translate;

public class translate{
  public static void main(String[] args) throws Exception {
    // Set the HTTP referrer to your website address.
    Translate.setHttpReferrer("http://en.wikipedia.org/wiki/Cooperation");
    String dummy = "Cooperation or co-operation is the process of working or acting together, which can be accomplished by both intentional and non-intentional agents. In its simplest form it involves things working in harmony, side by side, while in its more complicated forms, it can involve something as complex as the inner workings of a human being or even the social patterns of a nation. It is the alternative to working separately in competition. Cooperation can also be accomplished by computers, which can handle shared resources simultaneously, while sharing processor time.";

    String translatedText = Translate.execute("", Language.ENGLISH, Language.TURKISH);

    System.out.println(translatedText);
  }
}